package com.xunker.appointment.repository;

import com.xunker.appointment.model.hospital.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface DepartmentRepository extends MongoRepository<Department,String> {
    Department getDepartmentByDepartmentCodeAndHospitalCode(Object departmentCode, Object hospitalCode);

    void deleteDepartmentByDepartmentCodeAndHospitalCode(Object departmentCode, Object hospitalCode);

    void deleteDepartmentByDepartmentCode(String departmentCode);

    Department getDepartmentByHospitalCodeAndDepartmentCode(String hoscode, String depcode);

    Department getDepartmentByDepartmentCode(String departmentCode);
}
